package com.teamb6.shop.service.impl;

import com.teamb6.shop.domain.Admin;

import com.teamb6.shop.mapper.AdminMapper;
import com.teamb6.shop.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;



@Service
public class AdminServiceImpl implements AdminService {

    @Autowired
    AdminMapper adminMapper;


    @Override
    public Admin findByName(Admin admin) {
        return adminMapper.selectByName(admin);
    }

    @Override
    public Admin selectAdmin(String adminname) {
        return adminMapper.findByAdminname(adminname);
    }
}
